/**
 * Created by CodeTlan.
 * User: hellreuter
 * Date: 3/31/12
 * Time: 9:45 PM
 */
Ext.define('CT.view.consulta.conGrid',{
    extend: 'Ctc.view.Grid',
    alias: 'widget.congridconsulta',
    store: 'ConsultasContratos',
    autoScroll: true,
    columnLines: true,
    buildColumns: function(){
        return [
            {xtype: 'rownumberer'},
            {header: 'No. de Contrato', dataIndex: 'contrato', width: 90, align: 'center'},
            {header: 'Departamento', dataIndex: 'nombre', align: 'center', flex: 1  },
            {header: 'Dias', dataIndex: 'dias', width: 35, align: 'center'},
            {header: 'Fecha inicio', dataIndex: 'fecha_inicio', width: 75, align: 'center', renderer: Ext.util.Format.dateRenderer('d/m/Y')},
            {header: 'Fecha fin', dataIndex: 'fecha_fin', width: 75, align: 'center', renderer: Ext.util.Format.dateRenderer('d/m/Y')}
        ];
    }
});